package exception;

import enums.SysInfoEnum;
import enums.SysStatusEnum;
import lombok.Getter;

/**
 * @author jesse
 * @Date 2019/5/24 15:47
 * @Version 1.0
 */
@Getter
public class SysException extends RuntimeException{
    private Integer code;

   public SysException(SysInfoEnum sysInfoEnum){
        super(sysInfoEnum.getMessage());
        this.code = sysInfoEnum.getCode();
   }
}
